﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 静态和非静态的区别
{

	//这是一个静态类,只允许出现静态成员
	public static class Student
	{
		private static string _name;
		public static string Name { get => _name; set => _name = value; }
		//public void M1()  //不允许出现实例成员
		//{

		//}
		public static void M2()  //静态方法✔
		{

		}
	}
}
